package com.shkco.xbjcc.dto;

import com.shkco.utils.AssertUtil;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RegisterPhoneDto {
    @Pattern(regexp = AssertUtil.PHONE_FORMAT,message = "手机号格式不正确！")
    private String mobile;

    @Size(min = 6,max = 12,message = "密码需要在6~12位之间！")
    private String password;

    @NotNull
    private String smsCode;
    @NotNull
    private Integer regChannel;

    private String inviteCode;
}
